package com.gs.wechatdemo.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.gs.wechatdemo.activity.ChatListActivity;
import com.gs.wechatdemo.constant.AllConstants;

public class NotificationReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String otherId = intent.getStringExtra(AllConstants.OTHER_ID);
        Intent intentGo = new Intent(context, ChatListActivity.class);
        intentGo.putExtra(AllConstants.OTHER_ID,otherId);
        context.startActivity(intentGo);
    }
}
